package com.wimcorp.magic.abilities.trigger;

import javax.persistence.Entity;

import com.wimcorp.magic.abilities.Ability;

@Entity
public class OnSpellTarget extends AbilityTrigger {

	public OnSpellTarget() {
	}

	public OnSpellTarget(Ability ability){
		super(ability);
	}
	
	public OnSpellTarget(OnSpellTarget abilityTrigger) {
		super(abilityTrigger);
	}
	

	@Override
	public void register() {
		getAbility().getCard().registerAbilityTargetListener(getAbility());
		
	}
	
	@Override
	public void unRegister() {
		getAbility().getCard().unRegisterAbilityTargetListener(getAbility());
		
	}
	
	public OnSpellTarget clone() {
		return new OnSpellTarget(this);
	}
}
